package com.qdu.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qdu.entity.Acadamy;
import com.qdu.mapper.AcadamyMapper;
import com.qdu.service.AcadamyService;
@Service
public class AcadamyServiceImpl implements AcadamyService{
	
	@Autowired
	private AcadamyMapper acadamyMapper;

	@Override
	public Acadamy selectAcadamyById(int id) {
		return acadamyMapper.selectAcadamyById(id);
	}

	@Override
	public boolean addAcadamy(Acadamy acadamy) {
		return acadamyMapper.addAcadamy(acadamy);
	}

	@Override
	public boolean modifyAcadamy(Acadamy acadamy) {
		return acadamyMapper.modifyAcadamy(acadamy);
	}

	@Override
	public boolean deleteAcadamyById(int id) {
		return acadamyMapper.deleteAcadamyById(id);
	}

	@Override
	public List<Acadamy> selectAllAcadamy() {
		return acadamyMapper.selectAllAcadamy();
	}
}
